#pragma once
#include "where.h"

#define Tnline template<typename T> inline

class Delete 
{
protected:
	string  _table;
	Where   _where;
public:
	inline Delete(const string& t);
	inline Delete& clear(void);
	inline string data(void)const;
	inline Where& where(void);
};

inline Delete::Delete(const string& t):_table(t)
{
}
inline Delete& Delete::clear(void)
{
	_where.clear();
	return *this;
}
inline Where& Delete::where(void)
{
	return _where;
}
inline string Delete::data(void)const
{
	return "DELETE * from " + _table + _where.data() + ";";
}
#undef Tnline
